/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.minhphuong.bll;

import com.minhphuong.dal.MauSanPhamDAL;
import com.minhphuong.entities.MauSanPham;
import java.util.List;

/**
 *
 * @author MINHPHUONG
 */
public class MauSanPhamBLL {
    public static boolean insertMauSanPham(MauSanPham mausp)
    {
        mausp.setMaMsp(HelperBLL.getNextID("MauSanPham", "maMsp"));
        return MauSanPhamDAL.insertMauSanPham(mausp);
    }
    public static List<MauSanPham> getMauSanPhamById(int id)
    {
        return MauSanPhamDAL.getMauSanPhamByMaSP(id);
    }
}
